import request from '@/utils/request'

// 查询用户试题列表
export function listLearnUserExam(query) {
  return request({
    url: '/business/learnUserExam/list',
    method: 'get',
    params: query
  })
}

// 查询用户试题详细
export function getLearnUserExam(id) {
  return request({
    url: '/business/learnUserExam/' + id,
    method: 'get'
  })
}

// 新增用户试题
export function addLearnUserExam(data) {
  return request({
    url: '/business/learnUserExam',
    method: 'post',
    data: data
  })
}

// 修改用户试题
export function updateLearnUserExam(data) {
  return request({
    url: '/business/learnUserExam',
    method: 'put',
    data: data
  })
}

// 保存用户试题
export function saveLearnUserExam(data) {
  return request({
    url: '/business/learnUserExam/save',
    method: 'post',
    data: data
  })
}

// 删除用户试题
export function delLearnUserExam(id) {
  return request({
    url: '/business/learnUserExam/' + id,
    method: 'delete'
  })
}
